package com.itheima.pinda;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pinda.DTO.OrderCargoDto;
import com.itheima.pinda.DTO.OrderDTO;
import com.itheima.pinda.DTO.TaskPickupDispatchDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TransportOrderVO extends TaskTransportVO implements Serializable{
    private static final long serialVersionUID = -8450603564357788756L;

    /**
     * 运输任务
     */
//    private TaskTransportVO taskTransportVO;

    /**
     * 运单
     */
//    private TransportOrderDTO transportOrderDTO;
        /**
         * id
         */
        private String transportOrderId;


        /**
         * 订单ID
         */
        private String orderId;

        /**
         * 运单状态(1.新建 2.已装车，发往x转运中心 3.到达 4.到达终端网点)
         */
        private Integer transportOrderStatus;

        /**
         * 调度状态调度状态(1.待调度2.未匹配线路3.已调度)
         */
        private Integer schedulingStatus;

        /**
         * 创建时间
         */
        @JsonFormat(
                pattern = "yyyy-MM-dd HH:mm:ss"
        )
        private LocalDateTime createTime;
    /**
     * 货物信息
     */
    private OrderCargoDto orderCargoDto;

    /**
     * 订单
     */
    private OrderDTO orderDTO;

    /**
     * 取件任务
     */
    private TaskPickupDispatchDTO taskPickupDTO;

    /**
     * 派件任务
     */
        private TaskPickupDispatchDTO taskDispatchDTO;
}
